﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Iesi.Collections;
using System.Collections;
using System.Runtime.Serialization;

namespace XWord.Fundamental.Domain
{
    [Serializable]
    [DataContract]
    public class Category : Entity
    {
        /// <summary>
        /// 词源类型
        /// </summary>
        //public Type EtymaType { get; set; }
        //public virtual Guid Id { get; set; }

        //public virtual string Name { get; set; }

        public virtual ISet Words { get; set; }

        public virtual ISet Etyma { get; set; }


        public virtual CategoryType CategoryType { get; set; }

    }

    public enum CategoryType
    {
        Normal,
        /// <summary>
        /// 词性
        /// </summary>
        WordClass,
        /// <summary>
        /// 前缀
        /// </summary>
        PreFix,
        /// <summary>
        /// 后缀
        /// </summary>
        Suffix,
        /// <summary>
        /// 同义互转
        /// </summary>
        Transform
    }
}